Here we use the regular expression of PHP to implement:
The code is as follows
Copy Code
$content = ' Here is the content of the article, insert here a picture test ';$content = Stripslashes ($content);$img _array =
Regular expressions for string processing, form verification, and other occasions, practical and efficient. This article collects some common expressions:
$str = Preg_replace ("/(
) (. *?) ()/", ' \1\2\3 ', $str);
It uses three sub
The following is about the small series for everyone to collect and organize the regular expression of PHP, the specific content please see below detailed
$str = Preg_replace ("/() (. *?) ()/", ' \1\2\3 ', $str);
It uses three sub
tregexpr Regular Expressions2006-10-24 10:55
The regexpr in Delphi[2006-03-29 11:33:46 am | Author:admin]In fact, this Pascal unit I have recommended on a few forums, but also the only one I will use the following regular expression
Regular expression rulesCharacter Description:\: Marks the next character as a special character or literal. For example, "n" matches the character "n"."\ n" matches the line break. The sequence "\" matches "" \ ("and" ("matches").^: matches the
For a while, regular expression learning was very popular. At that time, I could see several regular expression posts in one day at csdn, during that time, I learned some basic knowledge through the C # string and regular expression reference manual
For a while, regular expression learning was very popular. At that time, I could see several regular expression posts in one day at csdn, during that time, I learned some basic knowledge through the C # string and regular expression reference manual
TRegExpr is a good implementation of regular expressions in delphi.
Is a separate unit, which can be directly referenced during use. Several samples are provided.
Add several lines of notes to the SelfTest example as follows:{Basic tests}
R: =
C # regular expression,For a while, regular expression learning was very popular. At that time, I could see several regular expression posts in one day at CSDN, during that time, I learned some basic knowledge through the C # string and regular
C # Regular Expression tutorial and example,
For a while, regular expression learning was very popular. At that time, I could see several regular expression posts in one day at CSDN, during that time, I learned some basic knowledge through the C #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.